package crm.system.service.basdservice.impl;

import java.math.BigDecimal;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import crm.system.dao.basddao.BasdDao;
import crm.system.entity.BasDict;
import crm.system.service.basdservice.BasdService;

public class BasdServiceImpl implements BasdService {
	private BasdDao basdDao;
	
	public void setBasdDao(BasdDao basdDao) {
		this.basdDao = basdDao;
	}

	@Override
	public Integer getTotalCount(DetachedCriteria dc) {
		// TODO Auto-generated method stub
		return basdDao.getTotalCount(dc);
	}

	@Override
	public List<BasDict> getPageList(DetachedCriteria dc, int fistResult,
			int maxResult) {
		// TODO Auto-generated method stub
		return basdDao.getPageList(dc, fistResult, maxResult);
	}

	@Override
	public BasDict getById(Long id) {
		// TODO Auto-generated method stub
		return basdDao.getById(id);
	}

	@Override
	public boolean update(BasDict basdDict) {
		// TODO Auto-generated method stub
		return basdDao.update(basdDict);
	}

	@Override
	public boolean delete(Long id) {
		// TODO Auto-generated method stub
		return basdDao.delete(id);
	}

	@Override
	public boolean add(BasDict basDict) {
		// TODO Auto-generated method stub
		return basdDao.add(basDict);
	}

}
